package entity;

import java.util.List;

/**
 * @BelongsProject:lx_parent
 * @BelongsPackage:entity
 * @Author:linchong
 * @CreateTime:2019-04-02 17:31
 * @Description:页面返回结果数据，分页返回
 */
public class PageResult<T> {
    private long total; //总记录数
    private List<T> rows; //分页返回数据
    public PageResult(){

    }

    public PageResult(long total,List<T> rows){
        this.total = total;
        this.rows = rows;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }
}
